<?php
namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Contracts\Index\SearchContracts;
use App\Services\Index\SearchService;
use Illuminate\Support\Facades\Schema;
use App\Contracts\Product\ProductItemsContracts;
use App\Services\Product\ProductShowService;

use App\Contracts\Order\OrderContracts;
use App\Services\Order\OrderService;


class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton(SearchContracts::class,SearchService::class);
        $this->app->singleton(ProductItemsContracts::class,ProductShowService::class);

        $this->app->singleton(OrderContracts::class,OrderService::class);
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {

        Schema::defaultStringLength(191);
    }
}
